package CelestialWorkflow;

import java.util.regex.*;

public class Validation {

    public static final String EMAIL_PATTERN = "[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}";
    public static boolean validateEmail(String email){

        return Pattern.matches(EMAIL_PATTERN, email);
    }

    public static void main(String[] args){

        System.out.println(validateEmail("CHAN0503@e.ntu.edu.sg"));
    }
}
